home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
051-075
/
scopedisk72
/
unix
/
tail.doc
< prev
next >
Wrap
Text File
|
1995-03-19
|
1KB
|
30 lines
TAIL.C
------
by Wayne Hayes (PUBLIC DOMAIN)
TAIL is a standard UNIX utility, usually used to print out the end of a text
file. (You know, those 3-hour 1000-line conferences that take 5 minutes
to print onscreen, and has a message you're looking for at line 998, just
before the 'clear screen' on line 999.)
By the way, it's the program that's public domain, not me.
USAGE: tail [+/-n] file1 file2 file3 ...
The simplest use is 'tail BIGFILE' (eg. above).
'tail -50 file' gives you the last 50 lines of a file. The default is the
last 10 lines.
'tail +50 file' gives you the file STARTING at LINE # 50.
'tail /50 file' will cause an error unless you have a file called /50.
This file is small, so no matter how useless you think it is, KEEP IT,
cause you're bound to need it the day after you turf it to make room
for that neat space invaders arc file.
---> And besides, you'll be one up on most UNIX users who've
never heard of this program but would think it really neat for those manual
'pages' that have the bug list at the end of 500-line explanations.